Przeglądaj źródła

Regex: \w includes "_". Thanks Leeoniya.

tags/0.3.0
Jan Lehnardt 16 lat temu
rodzic
commit
0b10ab0db8
1 zmienionych plików z 1 dodań i 1 usunięć
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js Wyświetl plik

@@ -62,7 +62,7 @@ var Mustache = function() {
}

var that = this;
var regex = new RegExp(this.otag + "%([\\w_-]+) ?([\\w]+=[\\w]+)?" +
var regex = new RegExp(this.otag + "%([\\w-]+) ?([\\w]+=[\\w]+)?" +
this.ctag);
return template.replace(regex, function(match, pragma, options) {
if(!that.pragmas_implemented[pragma]) {


Ładowanie…
Anuluj
Zapisz