mirror of
https://github.com/BorysLevytskyi/BitwiseCmd.git
synced 2025-12-22 12:42:44 +01:00
databinding and commands
This commit is contained in:
@@ -4,7 +4,12 @@
|
||||
app.service('expression', {
|
||||
parse: function(string) {
|
||||
var matches = twoOperandsRegex.exec(string);
|
||||
if(matches == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
console.log(matches);
|
||||
|
||||
return {
|
||||
string:matches[0],
|
||||
operand1: parseInt(matches[1], 10),
|
||||
|
||||
Reference in New Issue
Block a user