projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d6b5c2b
)
Pman.SearchTokenizer.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 23 Sep 2011 04:29:26 +0000
(12:29 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 23 Sep 2011 04:29:26 +0000
(12:29 +0800)
Pman.SearchTokenizer.js
patch
|
blob
|
history
diff --git
a/Pman.SearchTokenizer.js
b/Pman.SearchTokenizer.js
index
76f7615
..
5a0c3c5
100644
(file)
--- a/
Pman.SearchTokenizer.js
+++ b/
Pman.SearchTokenizer.js
@@
-14,8
+14,8
@@
Pman.SearchTokenizer = function(s)
{
Pman.SearchTokenizer = function(s)
{
- this.str =
s
;
- this.strlen = typeof(s)
? 'string' ? s.length : ''
;
+ this.str =
typeof(s) == 'string' ? s : ''
;
+ this.strlen = typeof(s)
== 'string' ? s.length : 0
;
this.i = 0;
this.tokens = [];
//print_r(this);
this.i = 0;
this.tokens = [];
//print_r(this);
@@
-137,7
+137,7
@@
Pman.SearchTokenizer.prototype = {
};
Pman.SearchTokenizer.parse = function(v) {
};
Pman.SearchTokenizer.parse = function(v) {
- var x = new Pman.SearchTokenizer();
+ var x = new Pman.SearchTokenizer(
v
);
return x.parse();
}
\ No newline at end of file
return x.parse();
}
\ No newline at end of file