assets/src/org/ruboto/ScriptLoader.java in ruboto-1.0.3 vs assets/src/org/ruboto/ScriptLoader.java in ruboto-1.1.0

- old
+ new

@@ -32,10 +32,10 @@ Object rubyInstance; if (rubyScript.exists()) { Log.d("Found script."); rubyInstance = component; final String script = rubyScript.getContents(); - boolean scriptContainsClass = script.matches("(?s).*class " + boolean scriptContainsClass = script.matches("(?s).*class\\s+" + component.getScriptInfo().getRubyClassName() + ".*"); boolean hasBackingJavaClass = component.getScriptInfo().getRubyClassName() .equals(component.getClass().getSimpleName()); if (scriptContainsClass) { if (hasBackingJavaClass) {