Content deleted Content added
→isIpOrRange: test first! |
→isIpOrRange: r |
||
Line 61:
*<code><nowiki>{{#invoke:IPAddress/sandbox|isIpOrRange| 1.2.3.4 }}</nowiki></code> → {{#invoke:IPAddress/sandbox|isIpOrRange| 1.2.3.4 }}
*<code><nowiki>{{#invoke:IPAddress/sandbox|isIpOrRange|1.2.3.0/24}}</nowiki></code> → {{#invoke:IPAddress/sandbox|isIpOrRange|1.2.3.0/24}}
*<code><nowiki>{{#invoke:IPAddress/sandbox|isIpOrRange|2606:6000:
*<code><nowiki>{{#invoke:IPAddress/sandbox|isIpOrRange|2606:6000:
*<code><nowiki>{{#invoke:IPAddress/sandbox|isIpOrRange}}</nowiki></code> → {{#invoke:IPAddress/sandbox|isIpOrRange}}
*<code><nowiki>{{#invoke:IPAddress/sandbox|isIpOrRange|}}</nowiki></code> → {{#invoke:IPAddress/sandbox|isIpOrRange|}}
Line 69:
:{{re|Johnuniq}} This is perfect{{snd}}thanks for your fast work here! Please go ahead and move this to the main module. I really appreciate it. Best, '''[[User:L235|KevinL]]''' (<small>aka</small> [[User:L235|L235]] '''·''' [[User talk:L235#top|t]] '''·''' [[Special:Contribs/L235|c]]) 09:23, 14 December 2020 (UTC)
::@[[User:L235|KevinL]]: Hang on, you've got to test it first! Does it work wherever you're intending to use it? [[User:Johnuniq|Johnuniq]] ([[User talk:Johnuniq|talk]]) 09:27, 14 December 2020 (UTC)
:::Well, from the examples you wrote above, I'm suitably confident this will work {{smiley}}. I know the code in [[Module:IP]] is well-tested and since this function relies on that I'm sure this will work too; I wasn't familiar with the lua syntax for testing the success of other functions, but I'm quite confident that you are! Based on the tests I've done on the beta cluster the parameter I'll be passing in is exactly in the form that your function accepts. Anyway, I'm quite confident that this works for me! Best, '''[[User:L235|KevinL]]''' (<small>aka</small> [[User:L235|L235]] '''·''' [[User talk:L235#top|t]] '''·''' [[Special:Contribs/L235|c]]) 09:35, 14 December 2020 (UTC)
|