diff --git a/js/rx/coretypes.js b/js/rx/coretypes.js index 6ea9195..d297abe 100644 --- a/js/rx/coretypes.js +++ b/js/rx/coretypes.js @@ -136,7 +136,6 @@ Rx.CoreType.strType = function (opt) { Rx.CoreType.strType.uri = 'tag:codesimply.com,2008:rx/core/str'; Rx.CoreType.strType.prototype.check = function (v) { if (! ((typeof(v) == 'string') || (v instanceof String))) return false; - if (this.length_check && ! this.length_check.check(v.length)) return false; if (this.value != null && v != this.value) return false; if (this.length_check && ! this.length_check.check(v.length)) { return false; diff --git a/python/Rx.py b/python/Rx.py index 3c37f0f..4c98574 100644 --- a/python/Rx.py +++ b/python/Rx.py @@ -390,7 +390,6 @@ def __init__(self, schema, rx): def check(self, value): if not type(value) in (str, unicode): return False - if self.length and not self.length(len(value)): return False if (not self.value is None) and value != self.value: return False if self.length and not self.length(len(value)): return False return True diff --git a/ruby/Rx.rb b/ruby/Rx.rb index 321bcf0..1a5e35e 100644 --- a/ruby/Rx.rb +++ b/ruby/Rx.rb @@ -596,10 +596,6 @@ def initialize(param, rx) @value = param['value'] end - - if param['length'] then - @length_range = Rx::Helper::Range.new( param['length'] ) - end end def check!(value)