From 8379c8a39ba50ab48045473de255b2be7916ad35 Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Fri, 31 Mar 2023 17:35:39 +0200 Subject: [PATCH] added build badge --- doc/RFC.md | 1 + src/xrfragment/URI.hx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/RFC.md b/doc/RFC.md index 05fb332..622f2f6 100644 --- a/doc/RFC.md +++ b/doc/RFC.md @@ -11,6 +11,7 @@ 1. `=` is used to split fragment key/values 1. fragment-values are urlencoded (space becomes `+` using `encodeUriComponent` e.g.) 1. every recognized fragment key/value-pair is added to a central map/associative array/object +[https://github.com/coderofsalvation/xrfragment/workflows/test/badge.svg](https://github.com/coderofsalvation/xrfragment) # XR Fragments (key/value params) diff --git a/src/xrfragment/URI.hx b/src/xrfragment/URI.hx index 2f18e9e..150fbcf 100644 --- a/src/xrfragment/URI.hx +++ b/src/xrfragment/URI.hx @@ -5,11 +5,11 @@ import xrfragment.Parser; @:expose // <- makes the class reachable from plain JavaScript @:keep // <- avoids accidental removal by dead code elimination // - // # `protocol://domain.com/some3d.asset#pos=1,0,0&prio=-5` + // # `://foo.com/my3d.asset#pos=1,0,0&prio=-5` class URI { @:keep // # URI parser public static function parse(qs:String):haxe.DynamicAccess { // - var fragment:Array = qs.split("#"); // > icanhazcode? yes, see [URI.hx](./../src/xrfragment/URI.hx) + var fragment:Array = qs.split("#"); // > icanhazcode? yes, see [URI.hx](https://github.com/coderofsalvation/xrfragment/blob/main/src/xrfragment/URI.hx) var splitArray:Array = fragment[1].split('&'); // var resultMap:haxe.DynamicAccess = {}; // 1. fragment URI starts with `#` for (i in 0...splitArray.length) { // 1. fragments are split by `&`