some random fixes
This commit is contained in:
parent
d9f0e0e2c4
commit
4ca857dd07
2 changed files with 5 additions and 5 deletions
|
|
@ -1,4 +1,6 @@
|
|||
require.def("ace/Search", ["ace/ace"], function(ace) {
|
||||
require.def("ace/Search",
|
||||
["ace/ace", "ace/Range"],
|
||||
function(ace, Range) {
|
||||
|
||||
var Search = function() {
|
||||
this.$options = {
|
||||
|
|
@ -139,10 +141,8 @@ Search.SELECTION = 2;
|
|||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
this.$rangeFromMatch = function(row, column, length) {
|
||||
return new ace.Range(row, column, row, column+length);
|
||||
return new Range(row, column, row, column+length);
|
||||
};
|
||||
|
||||
this.$assembleRegExp = function() {
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ require.def("ace/lib/lang", function() {
|
|||
return ret;
|
||||
};
|
||||
|
||||
this.escapeRegExp = function(str) {
|
||||
lang.escapeRegExp = function(str) {
|
||||
return str.replace(/([.*+?^${}()|[\]\/\\])/g, '\\$1');
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue