ソースを参照

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

tags/0.3.0
Jan Lehnardt 16年前
コミット
0b10ab0db8
1個のファイルの変更1行の追加1行の削除
  1. +1
    -1
      mustache.js

+ 1
- 1
mustache.js ファイルの表示

@@ -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]) {


読み込み中…
キャンセル
保存