Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
appinventor-sources
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
xpstem
appinventor-sources
Commits
6d2bed05
Unverified
Commit
6d2bed05
authored
Apr 07, 2021
by
Evan W. Patton
Committed by
GitHub
Apr 07, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix text not equals semantics (#2383)
Change-Id: I5d7de7966f27b5ae64ea38662daa00ea12ab519e
parent
f4309793
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
appinventor/blocklyeditor/src/generators/yail/text.js
appinventor/blocklyeditor/src/generators/yail/text.js
+5
-2
No files found.
appinventor/blocklyeditor/src/generators/yail/text.js
View file @
6d2bed05
...
...
@@ -92,6 +92,9 @@ Blockly.Yail['text_compare'] = function() {
+
Blockly
.
Yail
.
YAIL_CLOSE_COMBINATION
+
Blockly
.
Yail
.
YAIL_SPACER
;
code
=
code
+
Blockly
.
Yail
.
YAIL_DOUBLE_QUOTE
+
operator2
+
Blockly
.
Yail
.
YAIL_DOUBLE_QUOTE
+
Blockly
.
Yail
.
YAIL_CLOSE_COMBINATION
;
if
(
mode
==
'
NEQ
'
)
{
code
=
'
(not
'
+
code
+
'
)
'
;
}
return
[
code
,
Blockly
.
Yail
.
ORDER_ATOMIC
];
};
...
...
@@ -99,7 +102,7 @@ Blockly.Yail['text_compare'].OPERATORS = {
LT
:
[
'
string<?
'
,
'
text<
'
,
Blockly
.
Yail
.
ORDER_NONE
],
GT
:
[
'
string>?
'
,
'
text>
'
,
Blockly
.
Yail
.
ORDER_NONE
],
EQUAL
:
[
'
string=?
'
,
'
text=
'
,
Blockly
.
Yail
.
ORDER_NONE
],
NEQ
:
[
'
yail-not-equal
?
'
,
'
not =
'
,
Blockly
.
Yail
.
ORDER_NONE
]
NEQ
:
[
'
string=
?
'
,
'
not =
'
,
Blockly
.
Yail
.
ORDER_NONE
]
};
Blockly
.
Yail
[
'
text_trim
'
]
=
function
()
{
...
...
@@ -380,4 +383,4 @@ Blockly.Yail.text_replace_mappings.OPERATORS = {
LONGEST_STRING_FIRST
:
"
string-replace-mappings-longest-string
"
,
DICTIONARY_ORDER
:
"
string-replace-mappings-dictionary
"
//EARLIEST_OCCURRENCE: "string-replace-mappings-earliest-occurrence"
};
\ No newline at end of file
};
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment