1
0
mirror of https://github.com/sasjs/adapter.git synced 2026-01-08 13:00:05 +00:00

docs: fyxed typos and updated docs

This commit is contained in:
Yury Shkoda
2020-09-16 11:34:59 +03:00
parent 4ed150aff9
commit d517897615
45 changed files with 445 additions and 4066 deletions

View File

@@ -1,7 +1,7 @@
import { SASjsRequest } from '../types/SASjsRequest'
/**
* Comparator for SASjs request timestamps
* Comparator for SASjs request timestamps.
*
*/
export const compareTimestamps = (a: SASjsRequest, b: SASjsRequest) => {

View File

@@ -1,5 +1,5 @@
/**
* Checks if string is in URI format
* @param str string to check
* Checks if string is in URI format.
* @param str - string to check.
*/
export const isUri = (str: string): boolean => /^\/folders\/folders\//.test(str)

View File

@@ -1,3 +1,7 @@
/**
* Checks if string is in URL format.
* @param url - string to check.
*/
export const isUrl = (url: string): boolean => {
const pattern = new RegExp(
'^(http://|https://)[a-z0-9]+([-.]{1}[a-z0-9]+)*.[a-z]{2,5}(:[0-9]{1,5})?(/.*)?$',