Skip to content
This repository was archived by the owner on May 18, 2025. It is now read-only.

Commit e6d4bc7

Browse files
typofix which broke the parser
1 parent e6518c9 commit e6d4bc7

File tree

9 files changed

+17
-14
lines changed

9 files changed

+17
-14
lines changed

dist/xrfragment.aframe.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ xrfragment_Parser.parse = function(key,value,store) {
252252
var v = new xrfragment_XRF(key,Frag_h[key]);
253253
if(Object.prototype.hasOwnProperty.call(Frag_h,key)) {
254254
if(!v.validate(value)) {
255-
console.log("src/xrfragment/Parser.hx:79:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
255+
console.log("src/xrfragment/Parser.hx:82:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
256256
return false;
257257
}
258258
store[key] = v;
259259
if(xrfragment_Parser.debug) {
260-
console.log("src/xrfragment/Parser.hx:83:","✔ " + key + ": " + v.string);
260+
console.log("src/xrfragment/Parser.hx:86:","✔ " + key + ": " + v.string);
261261
}
262262
} else {
263263
if(typeof(value) == "string") {

dist/xrfragment.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ xrfragment_Parser.parse = function(key,value,store) {
252252
var v = new xrfragment_XRF(key,Frag_h[key]);
253253
if(Object.prototype.hasOwnProperty.call(Frag_h,key)) {
254254
if(!v.validate(value)) {
255-
console.log("src/xrfragment/Parser.hx:79:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
255+
console.log("src/xrfragment/Parser.hx:82:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
256256
return false;
257257
}
258258
store[key] = v;
259259
if(xrfragment_Parser.debug) {
260-
console.log("src/xrfragment/Parser.hx:83:","✔ " + key + ": " + v.string);
260+
console.log("src/xrfragment/Parser.hx:86:","✔ " + key + ": " + v.string);
261261
}
262262
} else {
263263
if(typeof(value) == "string") {

dist/xrfragment.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1614,12 +1614,12 @@ __xrfragment_Parser.parse = function(key,value,store)
16141614
local v = __xrfragment_XRF.new(key, ret);
16151615
if (Frag_h[key] ~= nil) then
16161616
if (not v:validate(value)) then
1617-
__haxe_Log.trace(Std.string(Std.string(Std.string(Std.string("⚠ fragment '") .. Std.string(key)) .. Std.string("' has incompatible value (")) .. Std.string(value)) .. Std.string(")"), _hx_o({__fields__={fileName=true,lineNumber=true,className=true,methodName=true},fileName="src/xrfragment/Parser.hx",lineNumber=79,className="xrfragment.Parser",methodName="parse"}));
1617+
__haxe_Log.trace(Std.string(Std.string(Std.string(Std.string("⚠ fragment '") .. Std.string(key)) .. Std.string("' has incompatible value (")) .. Std.string(value)) .. Std.string(")"), _hx_o({__fields__={fileName=true,lineNumber=true,className=true,methodName=true},fileName="src/xrfragment/Parser.hx",lineNumber=82,className="xrfragment.Parser",methodName="parse"}));
16181618
do return false end;
16191619
end;
16201620
store[key] = v;
16211621
if (__xrfragment_Parser.debug) then
1622-
__haxe_Log.trace(Std.string(Std.string(Std.string("") .. Std.string(key)) .. Std.string(": ")) .. Std.string(v.string), _hx_o({__fields__={fileName=true,lineNumber=true,className=true,methodName=true},fileName="src/xrfragment/Parser.hx",lineNumber=83,className="xrfragment.Parser",methodName="parse"}));
1622+
__haxe_Log.trace(Std.string(Std.string(Std.string("") .. Std.string(key)) .. Std.string(": ")) .. Std.string(v.string), _hx_o({__fields__={fileName=true,lineNumber=true,className=true,methodName=true},fileName="src/xrfragment/Parser.hx",lineNumber=86,className="xrfragment.Parser",methodName="parse"}));
16231623
end;
16241624
else
16251625
if (__lua_Boot.__instanceof(value, String)) then

dist/xrfragment.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ xrfragment_Parser.parse = function(key,value,store) {
252252
var v = new xrfragment_XRF(key,Frag_h[key]);
253253
if(Object.prototype.hasOwnProperty.call(Frag_h,key)) {
254254
if(!v.validate(value)) {
255-
console.log("src/xrfragment/Parser.hx:79:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
255+
console.log("src/xrfragment/Parser.hx:82:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
256256
return false;
257257
}
258258
store[key] = v;
259259
if(xrfragment_Parser.debug) {
260-
console.log("src/xrfragment/Parser.hx:83:","✔ " + key + ": " + v.string);
260+
console.log("src/xrfragment/Parser.hx:86:","✔ " + key + ": " + v.string);
261261
}
262262
} else {
263263
if(typeof(value) == "string") {

dist/xrfragment.three.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ xrfragment_Parser.parse = function(key,value,store) {
252252
var v = new xrfragment_XRF(key,Frag_h[key]);
253253
if(Object.prototype.hasOwnProperty.call(Frag_h,key)) {
254254
if(!v.validate(value)) {
255-
console.log("src/xrfragment/Parser.hx:79:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
255+
console.log("src/xrfragment/Parser.hx:82:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
256256
return false;
257257
}
258258
store[key] = v;
259259
if(xrfragment_Parser.debug) {
260-
console.log("src/xrfragment/Parser.hx:83:","✔ " + key + ": " + v.string);
260+
console.log("src/xrfragment/Parser.hx:86:","✔ " + key + ": " + v.string);
261261
}
262262
} else {
263263
if(typeof(value) == "string") {

dist/xrfragment.three.module.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,12 +252,12 @@ xrfragment_Parser.parse = function(key,value,store) {
252252
var v = new xrfragment_XRF(key,Frag_h[key]);
253253
if(Object.prototype.hasOwnProperty.call(Frag_h,key)) {
254254
if(!v.validate(value)) {
255-
console.log("src/xrfragment/Parser.hx:79:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
255+
console.log("src/xrfragment/Parser.hx:82:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
256256
return false;
257257
}
258258
store[key] = v;
259259
if(xrfragment_Parser.debug) {
260-
console.log("src/xrfragment/Parser.hx:83:","✔ " + key + ": " + v.string);
260+
console.log("src/xrfragment/Parser.hx:86:","✔ " + key + ": " + v.string);
261261
}
262262
} else {
263263
if(typeof(value) == "string") {

make

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ build(){
5555
}
5656

5757
build_js(){
58+
# prepend license to vanilla lib
59+
#echo "// https://xrfragment.org\n// SPDX-License-Identifier: MPL-2.0\n$(cat dist/xrfragment.js)" > dist/xrfragment.js
5860
# add js module
5961
cat dist/xrfragment.js > dist/xrfragment.module.js
6062
echo "export default xrfragment;" >> dist/xrfragment.module.js

src/xrfragment/Query.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ class Query {
9797
if( str.indexOf("<") != -1 ) oper = "<"; // 1. then scan for `<` operator
9898
if( str.indexOf(">=") != -1 ) oper = ">="; // 1. then scan for `>=` operator
9999
if( str.indexOf("<=") != -1 ) oper = "<="; // 1. then scan for `<=` operator
100+
if( isExclude.match(k) ){
100101
oper = "!=";
101102
k = k.substr(1); // 1. then strip key-operator: convert "-foo" into "foo"
102103
}else v = v.substr(oper.length); // 1. then strip value operator: change value ">=foo" into "foo"

test/generated/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -366,12 +366,12 @@ xrfragment_Parser.parse = function(key,value,store) {
366366
var v = new xrfragment_XRF(key,Frag_h[key]);
367367
if(Object.prototype.hasOwnProperty.call(Frag_h,key)) {
368368
if(!v.validate(value)) {
369-
console.log("src/xrfragment/Parser.hx:79:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
369+
console.log("src/xrfragment/Parser.hx:82:","⚠ fragment '" + key + "' has incompatible value (" + value + ")");
370370
return false;
371371
}
372372
store[key] = v;
373373
if(xrfragment_Parser.debug) {
374-
console.log("src/xrfragment/Parser.hx:83:","✔ " + key + ": " + v.string);
374+
console.log("src/xrfragment/Parser.hx:86:","✔ " + key + ": " + v.string);
375375
}
376376
} else {
377377
if(typeof(value) == "string") {

0 commit comments

Comments
 (0)