Hoppa till huvudinnehåll

//ERDDAP/com.cohort.util/ScriptString2/isJsonpNameSafe

isJsonpNameSafe

[JVM]
open fun isJsonpNameSafe(s: String): Boolean

This tests if s is a valid jsonp function name. The functionName MUST be a series of 1 or more (period-separated) words. For each word:

  • The first character must be (iso8859Letter|_).
  • The optional subsequent characters must be (iso8859Letter|_|0-9).
  • s must not be longer than 255 characters.

Note that JavaScript allows Unicode characters, but this does not.

Return

true if s is a valid jsonp function name.

Parameters

JVM

sa possible jsonp function name